// 自定义 hook
import { TypedUseSelectorHook, useDispatch, useSelector } from "react-redux";
import { RootState } from "@/store";

/**
 * export 与 import 的复合写法
 *      export { usePaths } from "./usePaths";
 *      相当于
 *      import { usePaths } from './usePaths'
 *      export { usePaths }
 */
export { useMenu } from "./useMenu";
export { usePaths } from "./usePaths";

export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
export const useAppDispatch = useDispatch;
